package com.java.boot.boot05web01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author jingjintao
 * @date 2021/7/26 - 23:22
 **/
@Controller
public class ViewTestController {

    @GetMapping("/atguigu")
    public String atguigu(Model model){

        model.addAttribute("msg","你好 atguigu");
        model.addAttribute("link","http://www.baidu.com");
        return "success";
    }
}
